.htaccess - use htaccess file to prevent link to specific external site? -


i have social network using popular php framework. competition trying spam site links site. there way use htaccess prevent links leading site? have www.his_domain.com clicks lead google or right home page?

you can use rewritecond , rewriterule create rules

rewritecond %{request_uri} his_domain.com

rewriterule google.com

but preventing user navigating external sites many not work badzen said. can try preventing spam instead


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -